package cn.itsource.exam.query;

import lombok.Data;

/**
 * Created by su on 2020/7/8.
 */
@Data
public class SubjectQuery {

    private Long currentPage = 1L;
    private Long pageSize = 10L;
    private String leadername;
    private String subjectname;

    public Long getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Long currentPage) {
        this.currentPage = currentPage;
    }

    public Long getPageSize() {
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.pageSize = pageSize;
    }

    public Long getStart(){
        return (currentPage-1)*pageSize;
    }

    public String getLeadername() {
        return leadername;
    }

    public void setLeadername(String leadername) {
        this.leadername = leadername;
    }

    public String getSubjectname() {
        return subjectname;
    }

    public void setSubjectname(String subjectname) {
        this.subjectname = subjectname;
    }
}
